<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0">
    <title>{{ config('app.name', '资源家') }}</title>
    <!-- CSRF Token -->
    <meta name="csrf-token" content="{{ csrf_token() }}">
    <link rel="stylesheet" href="{{ asset('static/layui/css/layui.css') }}">
    <link rel="stylesheet" href="{{ asset('static/frontend/default/css/layout.css') }}">
</head>
<body>
<!-- nav部分 -->
<div class="nav">
    <div class="layui-container">
        <!-- 公司logo -->
        <div class="nav-logo">
            <a href="index.html">
                资源家
            </a>
        </div>
        <div class="nav-list">
            <button>
                <span></span><span></span><span></span>
            </button>
            <ul class="layui-nav" lay-filter="">
                <li class="layui-nav-item layui-this"><a href="{{route('home')}}">首页</a></li>

                <li class="layui-nav-item"><a href="{{route('posts')}}">文章</a></li>
                <li class="layui-nav-item"><a href="{{get_permalink(51)}}">关于</a></li>
                <li class="layui-nav-item"><a href="https://fly.layui.com/store/" target="_blank">Github</a></li>
            </ul>
        </div>
    </div>
</div>

@yield('content')

<!-- footer部分 -->
<div class="footer">
    <p>

        <span>© 2019 资源家 - All Rights Reserved 粤ICP备19017804号-1</span>
    </p>
    <p><span>取之网络，源于网络，分享于网络！</span></p>
</div>
<script src="{{ asset('static/layui/layui.js') }}"></script>
<!--[if lt IE 9]>
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<script>
    layui.config({
        base: "{{ asset('static/frontend/default/js') }}/"
    }).use('firm');
</script>
@yield('script')
</body>
</html>